<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    // var str = "hello world";

    // console.log(str.includes("o"));
    // console.log(str.includes("a"));

    // console.log(str.startsWith("h"));
    // console.log(str.startsWith("a"));

    // console.log(str.endsWith("d"));
    // console.log(str.endsWith("b"));

    // console.log(str.repeat(5));


    // ===========


    // var str1 = "hello";
    // var str2 = 'world';
    // var str3 = `hahah`;

    // console.log(str1);
    // console.log(str2);
    // console.log(str3);

    var msg = "天气";

    var str1 = "今"+
    "天" + msg + "真好";
    var str2 = '今天' + msg + '真好';
    var str3 = `今
    天
    ${msg}
    真
    好`;

    console.log(str1);
    console.log(str2);
    console.log(str3);



    var str4 = `<div class="box">
        <img src="${img}" alt="">
        <span>${name}</span>
    </div>`;
    console.log(str4);



</script>
</html>